import requests
'''
爬取17k小说网的个人信息
'''
#session-》一连串的请求，在这个过程中cookie不会丢失
#会话
session = requests.session()
#登录
url = "https://passport.17k.com/ck/user/login"
heards = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36"
}
data = {
    "loginName": "18830251032",
    "password": "aTao121333"
}
resp = session.post(url=url, headers=heards, data=data)

print(resp.text)
print(resp.cookies)
resp1 = session.get("https://user.17k.com/ck/user/mine/readList?page=1&appKey=2406394919")

print(resp1.json())
